WooCommerce\Square\Handlers\Order D

Total Complexity 148
Dependencies 6
Dependents 6
Total lines 1,109
Lines of code 539
Logical lines of code 301
Comment lines 398
Methods 39
Properties 3

Methods 39

Method Rating Maintainability Complexity Lines of code
maybe_sync_stock_for_refund_from_other_gateway()
A
45 13 40
add_gift_card_add_to_cart_details_to_order()
A
51 10 29
maybe_stage_stock_updates_for_product()
A
53 10 21
filter_payment_method_title()
A
48 8 32
save_guest_details()
A
49 8 29
filter_gateway_title()
A
54 8 19
render_missing_billing_details_notice()
S
47 6 38
maybe_stage_inventory_updates_for_product()
S
59 7 13
reorder_gift_card()
S
51 6 27
modify_gift_card_line_item_key()
S
57 6 18
cache_previous_stock()
S
60 6 13
maybe_sync_staged_inventory_updates()
S
54 5 21
maybe_sync_inventory_for_stock_increase()
S
56 5 18
render_admin_missing_billing_details_notice()
S
58 5 16
maybe_sync_stock_for_order_via_paypal()
S
60 5 14
filter_order_item_totals()
S
54 4 19
add_admin_order_items()
S
47 2 49
__construct()
S
50 2 27
get_gift_card_gan()
S
64 3 10
maybe_sync_stock_for_order_via_other_gateway()
S
69 3 6
maybe_sync_stock_for_store_api_order_via_other_gateway()
S
69 3 6
get_gift_card_purchase_type()
S
64 3 10
no_verification_on_guest_save()
S
71 2 6
sync_stock_for_order()
S
65 2 9
get_gift_card_total_refunded_amount()
S
71 2 5
get_order_total_before_gift_card()
S
78 1 3
cache_product_previous_stock()
S
79 1 3
trigger_email_for_gift_card_sent()
S
81 1 3
hide_gift_card_line_item_meta()
S
77 1 4
hide_square_order_item_meta()
S
77 1 4
is_tender_type_card()
S
77 1 3
set_gift_card_total_refunded_amount()
S
78 1 3
set_gift_card_last4()
S
78 1 3
get_gift_card_last4()
S
78 1 3
get_gift_card_total_charged_amount()
S
78 1 3
set_gift_card_total_charged_amount()
S
78 1 3
is_tender_type_cash_app_pay()
S
77 1 3
is_tender_type_gift_card()
S
77 1 3
set_order_total_before_gift_card()
S
78 1 3